/**
 * Project Name:ldasp
 * File Name:ExtList.java
 * Package Name:com.troy.ldc.ldasp
 * Date:2017年4月9日下午7:36:10
 * Copyright (c) 2017, chenzhou1025@126.com All Rights Reserved.
 *
*/

package jbase.project.system.core.support;

import java.util.List;
import java.util.function.Function;

public interface ExtList<E> extends List<E> {

	public <T> ExtList<T> map(Function<E, T> function) throws Exception;

	public <T> ExtList<T> flatMap(Function<E, ExtList<T>> function) throws Exception;

	public ExtList<E> filter(Function<E, Boolean> function) throws Exception;

	public ExtList<E> drop(int n);

	public ExtList<E> excludeLast();

	public E lastElement();
}
